Original article address
Http://bbs.netpu.net/viewthread.php? Tid = 1690
Note:A previous article translated during format conversion. At that time, I didn't know much about these things, so it was not good at translation. I have not been exposed to
For detailed format descriptions, see:
1. Intel Hexadecimal Object File Format Specification 1988 (PDF), Revision A, January 6, 1988
2. http://en.wikipedia.org/wiki/Intel_hex
___________________________________________________________________________
HEX file format learning notes
In order to write a program that can perform ISP according to your own requirements, I learned about the Hex file format. Write the study notes to consolidate the learning content.
The Hex file is in the unit of action.
Conversion between JAVA Hex and string, and java hexToHexStringPublic static String toHexString (int I) returns the String representation of an integer parameter in the hexadecimal notation.If the parameter is negative, the unsigned integer is 232.
In embedded development, compiler-generated target files are generally. hex files.Why to convert, direct use of hex file not, but I have been in the development process is directly generated hex files, and then download, also did not see an
Address: http://www.cnblogs.com/zhangjiankun/archive/2011/12/08/2280097.html
I. Elf
Executable and linking format (ELF) files are commonly used object file formats in x86linux systems. There are three main types:
(1) a relocatable file suitable
1, problem descriptionWhen generating the firmware for Atmega128, the format is often specified as "intel-extended", as follows:Today to generate a new version of the program with boot, which involves the work of hex splicing.So the first thing to
Hex function
Returns a String that represents a hexadecimal numeric value.
Hex(number)
The number argument is any valid expression.
Description
If The number argument is not an integer, it is rounded to the nearest integer before the operation is
Python standard library: built-in functions hex (x) and pythonhex
This function is used to convert a hexadecimal string representation of an integer object, such as the 0x format. If the object is not an integer, define a method ___ index _ () to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.